export default function ({isStatic, isDev, req, res, route, redirect}) {
    if (isDev) {
        if (route.path.startsWith('/admin') && route.path !== '/admin/login') {
            if (req && req.headers && !req.headers.cookie) {
                redirect('/admin/login')
            }
        }
    }
}